class Admin::UsersController < ApplicationController
  layout "admin"
  
  helper :button
  
  before_filter :login_required
  
  access_control :DEFAULT => 'admin | users'
  
  resource_this :will_paginate => true, :path_prefix => 'admin_'
  
  def transfer
    @user = User.find(params[:id])
    respond_to do |format|
      format.html
    end
  end
  
  def destroy
    @user.authored.each do |a|
      a.author_id = params[:new][:author_id]
      a.save
    end
    respond_to do |format|
      format.html {redirect_to :action => "index"}
    end
  end
  
end
